package com.aspose.cells;

class zbky extends zck {
   zbky(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   void b() {
      float var1 = this.g;
      float var2 = this.h;
      float var3 = this.e.q();
      float var4 = this.e.r();
      float var5 = 0.0F;
      float var6 = 0.0F;
      float var7 = Math.min(var3, var4);
      com.aspose.cells.b.a.b.zq var8 = new com.aspose.cells.b.a.b.zq(var1, var2, var3, var4);
      com.aspose.cells.b.a.b.a.ze var9 = new com.aspose.cells.b.a.b.a.ze();
      var9.b(var8);
      com.aspose.cells.b.a.b.zc var10 = zbum.a(this.e.w(), var9);
      com.aspose.cells.b.a.b.zm var11 = zbum.a(this.e.x());
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var5 = var7 * (com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 100000.0F);
            var6 = var7 * com.aspose.cells.b.a.ze.a(this.e.m.a.get(1)) / 100000.0F;
         } else {
            var5 = var7 * 0.5F;
            var6 = var7 * 0.5F;
         }
      } else {
         var5 = var7 * 0.5F;
         var6 = var7 * 0.5F;
      }

      float var12 = var3 - var6;
      float var13 = (var4 - var5) / 2.0F;
      float var14 = var4 - 2.0F * var13;
      float var15 = var3 > var4 ? var4 : var3;
      float var16 = 0.03333F * var15;
      float var17 = 0.06065F * var15;
      com.aspose.cells.b.a.b.zq var18 = new com.aspose.cells.b.a.b.zq(var1, var2 + var13, var16, var14);
      com.aspose.cells.b.a.b.zq var19 = new com.aspose.cells.b.a.b.zq(var1 + 0.06444F * var15, var2 + var13, var17, var14);
      com.aspose.cells.b.a.b.zo[] var20 = new com.aspose.cells.b.a.b.zo[7];
      com.aspose.cells.b.a.b.a.ze var21 = new com.aspose.cells.b.a.b.a.ze();
      var20[0] = new com.aspose.cells.b.a.b.zo(var1 + 0.15777F * var15, var2 + var13);
      var20[1] = new com.aspose.cells.b.a.b.zo(var1 + var12, var2 + var13);
      var20[2] = new com.aspose.cells.b.a.b.zo(var1 + var12, var2);
      var20[3] = new com.aspose.cells.b.a.b.zo(var1 + var3, var2 + var4 / 2.0F);
      var20[4] = new com.aspose.cells.b.a.b.zo(var1 + var12, var2 + var4);
      var20[5] = new com.aspose.cells.b.a.b.zo(var1 + var12, var2 + var4 - var13);
      var20[6] = new com.aspose.cells.b.a.b.zo(var1 + 0.15777F * var15, var2 + var4 - var13);
      var21.b(var20);
      if (!this.e.w().a()) {
         this.a.b(var10, var18);
         this.a.b(var10, var19);
         this.a.a(var10, var21);
      }

      if (!this.e.x().a()) {
         this.a.c(var11, var1, var2 + var13, var16, var14);
         this.a.c(var11, var1 + 0.06444F * var15, var2 + var13, var17, var14);
         this.a.a(var11, var21);
      }

      super.a();
   }
}
